projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
953884c
)
mx6qarm2:Use IMX_GPIO_NR macro
author
Ashok Kumar Reddy
<
[email protected]
>
Thu, 23 Aug 2012 15:31:34 +0000
(21:01 +0530)
committer
Albert ARIBAUD
<
[email protected]
>
Sat, 1 Sep 2012 12:58:29 +0000
(14:58 +0200)
Signed-off-by: Ashok Kumar Reddy <
[email protected]
>
Acked-by: Fabio Estevam <
[email protected]
>
Acked-by: Stefano Babic <
[email protected]
>
board/freescale/mx6qarm2/mx6qarm2.c
patch
|
blob
|
history
diff --git
a/board/freescale/mx6qarm2/mx6qarm2.c
b/board/freescale/mx6qarm2/mx6qarm2.c
index 340c4c4393b20cf6b6a4305cc46f626caa6c392e..e987ab0f2bdc6241e6d6030cdc596f211de54d71 100644
(file)
--- a/
board/freescale/mx6qarm2/mx6qarm2.c
+++ b/
board/freescale/mx6qarm2/mx6qarm2.c
@@
-126,8
+126,8
@@
int board_mmc_getcd(struct mmc *mmc)
int ret;
if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
- gpio_direction_input(
171); /*GPIO6_11*/
- ret = !gpio_get_value(
171
);
+ gpio_direction_input(
IMX_GPIO_NR(6, 11));
+ ret = !gpio_get_value(
IMX_GPIO_NR(6, 11)
);
} else /* Don't have the CD GPIO pin on board */
ret = 1;